﻿using System.Threading.Tasks;
using System;
using Microsoft.AspNetCore.SignalR;

namespace TyMES.MidWare
{
    public class ScanCodebHub : Hub
    {
        public Task SendMessage(string message)
        {
            string connId = this.Context.ConnectionId;
            string msg = $"{connId} {DateTime.Now}:{message}";
            return Clients.All.SendAsync("ReceiveMessage", "dijkstra!");
        }
    }
}
